package com.example.gulimall.auth.service;

import com.example.common.utils.R;
import com.example.common.vo.UserLoginVo;
import com.example.common.vo.UserRegisterVo;
import org.springframework.validation.BindingResult;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import javax.servlet.http.HttpSession;

/**
 * <p>
 *
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
public interface AuthService {
    R sendSms(String phone);

    String register(UserRegisterVo vo, BindingResult result, RedirectAttributes attributes);

    String login(UserLoginVo vo, RedirectAttributes attributes);

    String giteeSussess(String code, HttpSession session);

    String logout(HttpSession session);
}
